<?php echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>'?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
          <title><?php echo $this->galleryName; ?></title>
          <link><?php echo $this->pathGallery . '/' . $this->galleryName . '.xml'; ?></link>
          <description><?php echo $this->galleryName; ?> gallery from <?php echo $this->websiteUrl;?></description>
          
      <?php if(!empty($this->images) && is_array($this->images)): ?>
      <?php foreach ($this->images as $image): ?>
          
          <item>
               <title><?php echo str_replace('-',' ',Default_View_Helper_ToolsHelper::cropType($image)); ?></title>
               <media:description>Gallery "<?php echo $this->galleryName; ?>": <?php echo $image;?></media:description>
               <link><?php echo $this->pathGallery . $image; ?></link>
               <media:thumbnail url="<?php echo $this->pathGallery . 'thumbnails/' . $image; ?>"/>
               <media:content url="<?php echo $this->pathGallery . $image; ?>"/>
          </item>
          <?php endforeach; ?>
      <?php endif; ?>
      </channel>
      </rss>
